package com.adderis.soft.service;

import java.util.List;

import com.adderis.soft.domain.model.Type;

public interface ITypeBo {

	/**
	 * Persist a Type entity in the database
	 * 
	 * @param transientType
	 */
	public void persist(Type transientType);

	/**
	 * Remove a persisted Type from the database
	 * 
	 * @param persistentType
	 */
	public void remove(Type persistentType);

	public void remove(Integer id);

	/**
	 * Update a Type in the database
	 * 
	 * @param detachedType
	 * @return merged Type
	 */
	public Type merge(Type detachedType);

	/**
	 * Find a Type by id
	 * 
	 * @param id
	 * @return the found Type
	 */
	public Type findById(Integer id);

	/**
	 * Find a Type by id
	 * 
	 * @return the found Type
	 */
	public List<Type> findAll();

	/**
	 * Search Types
	 * 
	 * @param searchString
	 * @return the found Types
	 */
	public List<Type> search(String searchString);

}

